package com.dd.cloud.user.entity.pres;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import io.lettuce.core.dynamic.annotation.Command;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "加工类型膏方蜂蜜记录表")
public class PresSaveMaterial {


    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;


    /**
     * 材料名
     */
    @Column(length = 20, comment = "名称")
    private String name;

    /**
     * 单位
     */
    @Column(comment = "单位")
    private String unit;

    /**
     * 总重量
     */
    @Column(comment = "重量")
    private BigDecimal weight;

    /**
     * 单价
     */
    @Column(comment = "单价")
    private Integer price;

    /**
     * 类型
     */
    @Column(comment = "类型")
    private Integer type;

    /**
     * 处方编号
     */
    @Column(comment = "处方编号")
    private String tencode;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间")
    private LocalDateTime createDate;

    /**
     * 原价
     */
    @Column(comment = "原价")
    private Integer originalPrice;
}
